package com.tem.customer.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 鸿源塔基
 * @since 2023-10-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("distribution")
@ApiModel(value="Distribution对象", description="")
public class Distribution implements Serializable {
    private static final long serialVersionUID=34547905631941L;
    @ApiModelProperty(value = "分销关系")
    @TableId(value = "distribution_id", type = IdType.AUTO)
    private Long distributionId;

    @ApiModelProperty(value = "部门 店铺")
    @TableField("sys_branch_office_id")
    private Long sysBranchOfficeId;

    @ApiModelProperty(value = "系统")
    @TableField("system_level_id")
    private Long systemLevelId;

    @ApiModelProperty(value = "代理人id")
    @TableField("super_id")
    private Long superId;

    @ApiModelProperty(value = "分销人")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "开始时间")
    @TableField("in_time")
    private LocalDateTime inTime;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
